//
//  WHScanView.h
//  WHEasyBizLink
//
//  Created by shengmeng chen on 2024/11/26.
//

#import <UIKit/UIKit.h>

/** 扫描内容的Y值 */
#define scanContent_Y self.frame.size.height * 0.14
/** 扫描内容的Y值 */
#define scanContent_X self.frame.size.width * 0.1

NS_ASSUME_NONNULL_BEGIN

@interface WHScanView : UIView

@property (nonatomic, strong) UIView *bottom_View;
@property (nonatomic, strong) UIButton *light_button;

- (instancetype)initWithFrame:(CGRect)frame outsideViewLayer:(CALayer *)outsideViewLayer;

- (void)setupScanningQRCodeEdging;

+ (instancetype)scanningQRCodeViewWithFrame:(CGRect )frame outsideViewLayer:(CALayer *)outsideViewLayer;

/** 停止或者开启定时器 */
- (void)setFireDate:(NSDate*)date;

/** 添加定时器 */
- (void)addTimer;
    // 添加定时器

/** 移除定时器(切记：一定要在Controller视图消失的时候，停止定时器) */
- (void)removeTimer;

@property (nonatomic, copy) void(^clicBtnBlock)(UIButton *btn);

@end

NS_ASSUME_NONNULL_END
